package com.itheima.Jiuye05;

import java.math.BigDecimal;

public class MybigDecimalDame {
    public static void main(String[] args) {
        BigDecimal b = new BigDecimal("0.1");
        BigDecimal a = new BigDecimal("0.3");
        //ROUND_HALF_UP    四舍五入
        //ROUND_UP
        BigDecimal bigDecimal = b.divide(a,3,BigDecimal.ROUND_HALF_UP);
        System.out.println(bigDecimal);
    }
}
